package com.hopu.v1.pojo.question;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @TableName t_questions_comments
 */
@TableName(value ="t_questions_comments")
@Data
public class QuestionsComments implements Serializable {
    @TableId(type = IdType.AUTO)
    private Integer id;

    private Integer studentId;

    private Integer questionId;

    private String commentContent;

    private Integer pid;

    private Integer likes;

    @TableField("`status`")
    private Integer status;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createTime;

    @TableField(exist = false)
    private List<QuestionsComments> children;

    private static final long serialVersionUID = 1L;
}